package org.glorylight.hacks.social.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MessageThread implements Serializable {

	private static final long serialVersionUID = 6616158148285536722L;

	private String id;
	private String subject;
	private List<MessageData> messages = new ArrayList<MessageData>();
	private List<String> participants = new ArrayList<String>();

	public MessageThread() {
	}

	public MessageThread(String id, String subject, List<MessageData> messages) {
		this.id = id;
		this.subject = subject;
		this.messages = messages;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public List<MessageData> getMessages() {
		return messages;
	}

	public void setMessages(List<MessageData> messages) {
		this.messages = messages;
	}

	public void clearMessages() {
		this.messages.clear();
	}

	public List<String> getParticipants() {
		return participants;
	}

	public void setParticipants(List<String> participants) {
		this.participants = participants;
	}
}
